package com.example.moneybook.controller;

import com.example.moneybook.dto.ResponseResult;
import com.example.moneybook.pojo.Feedback;
import com.example.moneybook.service.FeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 包
 * @Date: 2023/3/18 13:27
 * Description:
 */
@RestController
@RequestMapping("/feedback")
public class FeedbackController {

    @Autowired
    private FeedbackService feedbackService;

    @PostMapping("/addfeedback")
    public ResponseResult addFeedback(@RequestBody Feedback feedback){
        return feedbackService.addFeedback(feedback);
    }

}
